<template>
  <div>
    <a href="javascipt:;" @click="skip('/ui_router')">UI_Router</a>
    <a href="javascipt:;" @click="skip('/contacts')">Contacts</a>
    <a href="javascipt:;" @click="skip('/about')">About</a>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    skip(path) {
      this.$router.push({
        //完整写法path:path
        path,
      })
    },
  },
}
</script>

<style></style>
